package com.bw.controller;

import com.bw.service.OrderInfoService;
import com.sugar.SugarUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassName: OrderInfoController
 * @Author: huzx
 * @Date: 2025-06-06 16:21
 * @Version: 1.0
 **/

@RestController
public class OrderInfoController {
    @Autowired
    OrderInfoService orderInfoService;

//    @GetMapping("/find2")
//    @RequestMapping(value = "find2",method = RequestMethod.POST)

    @PostMapping("find2")
    public Map find2(){
        Double value = orderInfoService.find2();
        Map numberData = SugarUtil.getFlipNumberData(value);
        return numberData;
    }
}
